package masquerade.companion;

import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.app.ListActivity;
import android.content.Intent;

public class Taumaturgia extends ListActivity {
	
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		// Create an array of Strings, that will be put to our ListActivity
		String[] menudisc = getResources().getStringArray(R.array.ListaTaumaturgia);
		// Use your own layout and point the adapter to the UI elements which
		// contains the label
		this.setListAdapter(new ArrayAdapter<String>(this, R.layout.list_menu,
				R.id.list_menu, menudisc));
	}

	@Override
	protected void onListItemClick(ListView l, View v, int position, long id) {
		// Get the item that was clicked
		switch (position){
		case 0:
			Intent i0 =new Intent();
    		i0.setClass(this, TaumaturgiaLinhadoSangue.class);
    		startActivity(i0);
    		break;
		case 3:
			Intent i3 =new Intent();
    		i3.setClass(this, TaumaturgiaLinhaConjuracao.class);
    		startActivity(i3);
    		break;
		case 4:
    		Intent i4 =new Intent();
    		i4.setClass(this, TaumaturgiaMaosdaDestruicao.class);
    		startActivity(i4);
    		break;
		case 5:
			Intent i5 =new Intent();
    		i5.setClass(this, TaumaturgiaRituais.class);
    		startActivity(i5);
    		break;
		}
	}
}